﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Bamuca.Master" AutoEventWireup="true" CodeBehind="../Views/Alunos.aspx.cs" Inherits="Bamuca.Views.Alunos" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            width: 85%;
        }
        .style4
        {
        }
        .style5
        {
            width: 195px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    
    <div id="titulo">
        <center>
        <h2 style="font-family: Calibri;">Pesquisa de Alunos</h2>
        </center>
        <hr style="height: -12px; width: 934px;" />
    </div>

    <div style="width: 500px; padding: 10px;">
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:Panel ID="pnPesquisaAlunos" runat="server" BackColor="White" Width="500px" 
            BorderColor="#DBDBDB">            
            <table class="style1">
                <tr>
                    <td align="left" colspan="2">
                        <strong>Matrícula:</strong><br />                    
                        <asp:TextBox ID="txtMatricula" runat="server"></asp:TextBox>                    
                    </td>
                </tr>
                <tr>
                    <td align="left" colspan="2">
                        <strong>Nome:</strong><br />
                        <asp:TextBox ID="txtNome" runat="server" Width="300px"></asp:TextBox>                            
                    </td>
                </tr>
                <tr>
                    <td align="left" class="style5">
                       <strong>CPF:</strong><br />                        
                       <asp:TextBox ID="txtCPF" runat="server"></asp:TextBox>                        
                    </td>
                    <td align="left">
                        <strong>Status:</strong><br />                        
                        <asp:DropDownList ID="cmbStatus" runat="server" Width="100px">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td align="left" class="style5">
                        &nbsp;</td>
                    <td align="left">
                        &nbsp;</td>
                </tr>
                <tr>
                    <td align="left" class="style4" colspan="2">
                        <asp:ImageButton ID="ibtnIncluir" runat="server" Height="27px" 
                            ImageUrl="~/Imagens/btn_add.png" ToolTip="Inclui um novo aluno" 
                            PostBackUrl="~/Views/IncluirAlunos.aspx" />           
                        &nbsp;
                        <asp:ImageButton ID="ibtnPesquisar" runat="server" Height="27px" 
                            ImageUrl="~/Imagens/btn_pesquisar.png" ToolTip="Pesquisa alunos existentes" />
                        &nbsp;
                        <asp:ImageButton ID="ibtnVoltar" runat="server" Height="27px" 
                            ImageUrl="~/Imagens/btn_voltar.png" PostBackUrl="~/Views/Home.aspx" 
                            ToolTip="Retorna à pagina principal" />
                    </td>
                </tr>
            </table>
       
            <br />
            <div style="height: 190px; overflow: auto;">
                <asp:GridView ID="GridView1" runat="server" Width="430px" 
                    onselectedindexchanged="GridView1_SelectedIndexChanged">
                    <AlternatingRowStyle BackColor="#99CCFF" />
                    <EditRowStyle BackColor="White" />
                    <HeaderStyle BackColor="#3827CD" ForeColor="White" HorizontalAlign="Center" VerticalAlign="Middle" />
                </asp:GridView>
            </div>

        </asp:Panel>
        
        </ContentTemplate>
        </asp:UpdatePanel>
        
    </div>

</asp:Content>
